//生成外贸基础表单数据


import axios from "axios";
import {ElMessage} from "element-plus";



export default async ()=>{
    //后端引用类名
    const classPath = 'com.aier.bean.foreign.ForeignBase'
    try {
        const response = await axios.post('http://localhost:8888/form/get_structure',{classPath})
        if (response.data.code === '00000'){
            return response.data.data ||[]
        }else {
            ElMessage.error(response.data.message)
        }
    }catch (e) {
        ElMessage.error(e.message)
    }
}